﻿using BenchmarkDotNet.Running;
using CRL;
using QueryTest.Code;
using System;
using System.Collections.Generic;

namespace QueryTest.test
{
    public class tableCheck
    {
        public static void testCreateTable()
        {
            new ProductDataRepository().CreateTable();
            //new OrderRepository().CreateTable();
            //new MemberRepository().CreateTable();
            //RepositoryFactory.Get<MemmberAccount>().CreateTable();
            //RepositoryFactory.Get<Blog>().CreateTable();
            //RepositoryFactory.Get<BlogUser>().CreateTable();
            //RepositoryFactory.Get<BlogTag>().CreateTable();
        }
        public static void testCreateTableIndex()
        {
            var instance = new ProductDataRepository();
            instance.CreateTableIndex();
        }
        public static void testSyncTableFields()
        {
            var instance = new ProductDataRepository();
            instance.SyncTableFields();
        }

        public static void testSyncFieldComment()
        {
            var instance = new ProductDataRepository();
            instance.UpdateTableFiledComments();
        }

        static void testBenchmark()
        {
            var summary = BenchmarkRunner.Run<BenchmarkDotNetTest>();
        }
    }
}
